home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwsema.dir / 00422_Script_422 < prev    next >
Text File  |  1994-11-15  |  24KB  |  727 lines

  1. on startMovie
  2.   global nowFrame, lastMovie
  3.   global lastRoll,lastCast
  4.   
  5.   set lastMovie = "FLWSEMA"
  6.   
  7.   set lastRoll = 0
  8.   set lastCast = 0
  9.   setPuppet TRUE
  10.   repeat with i = 21 to 23
  11.     puppetSprite i, TRUE
  12.   end repeat
  13.   set the immediate of sprite 23 to TRUE
  14.   set the stretch of sprite 23 to FALSE
  15. end startMovie
  16.  
  17. on stepMovie
  18.   global nowFrame,currFrame
  19.   if nowFrame <> currFrame then
  20.     seeAlsoList
  21.     set currFrame = nowFrame
  22.   end if
  23. end stepMovie
  24.  
  25. on stopMovie
  26.   set the castNum of sprite 21 to 1050
  27.   puppetsprite 21, FALSE
  28.   put " " into field "SeeAlsoText"
  29.   updateStage
  30. end stopMovie
  31.  
  32. on saveLocals
  33.   global lastFrame,nowFrame,lastMovie
  34.   set lastFrame = nowFrame 
  35. end saveLocals
  36.  
  37. on seForStep
  38.   global nowFrame
  39.   put the castNum of sprite 9 into cName
  40.   if nowFrame = "sematrei007°°°" then 
  41.     gUnPuppet
  42.     go to frame "setypint000°°°" of movie "FLWSETY"
  43.   else if chars(nowFrame,6,8) = "int" then
  44.     gUnPuppet
  45.     puppetTransition 2,0,128
  46.     go to marker(+1)
  47.   else if cName = A28 then
  48.     puppetTransition 2,0,128
  49.     go to marker(+2) 
  50.   else
  51.     puppetSprite 2, FALSE
  52.     puppetTransition 2,0,128
  53.     go to marker(+1)
  54.   end if
  55. end seForStep
  56.  
  57.  
  58. on seBackStep
  59.   global nowFrame,jmpStep 
  60.   put the castNum of sprite 9 into cName
  61.   if chars(nowFrame,11,11) = "1" then
  62.     resetHit
  63.     updateStage
  64.   end if
  65.   if chars(nowFrame,6,8) = "int" then
  66.     go to "sepatnat006°°°" of movie "FLWSEPA"
  67.   else
  68.     puppetTransition 1,0,128
  69.     go to marker(jmpStep)
  70.   end if  
  71. end seBackStep
  72.  
  73. on mainRtn
  74.   global swapSpnum,rollFlag, dialogOn
  75.   if dialogOn = FALSE then
  76.     set rollFlag = FALSE
  77.     if rollOver(9) then
  78.       puppetSprite 9,TRUE
  79.       set the foreColor of sprite 9 to 230
  80.     else
  81.       set the foreColor of sprite 9 to 255  
  82.       puppetSprite 9,FALSE
  83.     end if
  84.     
  85.     menuRollOver()
  86.     if rollFlag = TRUE then
  87.       when  mouseDown then  isPress(swapSpnum)
  88.     else
  89.       when mouseDown then nothing
  90.     end if
  91.     --if the mouseH >= 340 and the mouseV > 450 then
  92.     buttonState
  93.     --end if
  94.   end if
  95. end mainRtn
  96.  
  97. on buttonState
  98.   global thumbTrack, thumbFrame, bflag, FrankNav, adjPerOn, noTx, dialogOn
  99.   
  100.   
  101.   if dialogOn = FALSE then
  102.     
  103.     
  104.     -- don't check global buttons unless mouse is down at bottom
  105.     if (the mouseV > 200) or (bFlag = TRUE) then
  106.       set bFlag = FALSE
  107.       doState
  108.     end if
  109.   else if dialogOn = TRUE then
  110.     if the mouseDown then 
  111.       if the mouseCast <> the number of cast "glossDialog" then
  112.         beep
  113.       end if
  114.     end if
  115.   end if
  116.   --if bflag = FALSE then set the castNum of sprite 23 to noTx
  117. end buttonState
  118.  
  119. on isrollPhil 
  120.   global phiint,org, tec, dem, uni, bal, ref, lig, tru
  121.   global nowroll
  122.   if (the mouseH >= item 1 of phiint and the mouseH <= item 2 of phiint)¼
  123.       and (the mouseV >= item 3 of phiint and the mouseV <= item 4 of phiint) then
  124.     set nowroll = "phiint"
  125.   else if (the mouseH >= item 1 of org and the mouseH <= item 2 of org)¼
  126.       and (the mouseV >= item 3 of org and the mouseV <= item 4 of org) then
  127.     set nowroll = "org"
  128.   else if (the mouseH >= item 1 of tec and the mouseH <= item 2 of tec)¼
  129.        and (the mouseV >= item 3 of tec and the mouseV <= item 4 of tec) then
  130.     set nowroll = "tec"
  131.   else if (the mouseH >= item 1 of dem and the mouseH <= item 2 of dem)¼
  132.        and (the mouseV >= item 3 of dem and the mouseV <= item 4 of dem) then
  133.     set nowroll = "dem"
  134.   else if (the mouseH >= item 1 of uni and the mouseH <= item 2 of uni)¼
  135.      and (the mouseV >= item 3 of uni and the mouseV <= item 4 of uni) then
  136.     set nowroll = "uni"
  137.   else if (the mouseH >= item 1 of bal and the mouseH <= item 2 of bal)¼
  138.      and (the mouseV >= item 3 of bal and the mouseV <= item 4 of bal) then
  139.     set nowroll = "bal"
  140.   else if  (the mouseH >= item 1 of ref and the mouseH <= item 2 of ref)¼
  141.      and ( the mouseV >= item 3 of ref and the mouseV <= item 4 of ref) then
  142.     set nowroll = "ref"
  143.   else if (the mouseH >= item 1 of lig and the mouseH <= item 2 of lig)¼
  144.      and (the mouseV >= item 3 of lig and the mouseV <= item 4 of lig) then
  145.     set nowroll = "lig"
  146.   else if (the mouseH >= item 1 of tru and the mouseH <= item 2 of tru)¼
  147.     and (the mouseV >= item 3 of tru and  the mouseV <= item 4 of tru) then
  148.     set nowroll = "tru"
  149.   else
  150.     set nowroll = ""
  151.   end if
  152.   updateStage
  153.   return nowroll
  154. end isrollPhil
  155.  
  156. on isrollSite 
  157.   global sitint,fla,hil, mou
  158.   global nowroll
  159.   if (the mouseH >= item 1 of sitint and the mouseH <= item 2 of sitint)¼
  160.       and (the mouseV >= item 3 of sitint and the mouseV <= item 4 of sitint) then
  161.     set nowroll = "sitint"
  162.   else if (the mouseH >= item 1 of fla and the mouseH <= item 2 of fla)¼
  163.       and (the mouseV >= item 3 of fla and the mouseV <= item 4 of fla) then
  164.     set nowroll = "fla"
  165.   else if (the mouseH >= item 1 of hil and the mouseH <= item 2 of hil)¼
  166.        and (the mouseV >= item 3 of hil and the mouseV <= item 4 of hil) then
  167.     set nowroll = "hil"
  168.   else if (the mouseH >= item 1 of mou and the mouseH <= item 2 of mou)¼
  169.        and (the mouseV >= item 3 of mou and the mouseV <= item 4 of mou) then
  170.     set nowroll = "mou"
  171.   else
  172.     set nowroll = "" 
  173.   end if
  174.   return nowroll
  175. end isrollSite
  176.  
  177. on isrollPatt 
  178.   global patint,geo, col,sou,mus,cul,nat
  179.   global nowroll
  180.   if (the mouseH >= item 1 of patint and the mouseH <= item 2 of patint)¼
  181.       and (the mouseV >= item 3 of patint and the mouseV <= item 4 of patint) then
  182.     set nowroll = "patint"
  183.   else if (the mouseH >= item 1 of geo and the mouseH <= item 2 of geo)¼
  184.       and (the mouseV >= item 3 of geo and the mouseV <= item 4 of geo) then
  185.     set nowroll = "geo"
  186.   else if (the mouseH >= item 1 of col and the mouseH <= item 2 of col)¼
  187.        and (the mouseV >= item 3 of col and the mouseV <= item 4 of col) then
  188.     set nowroll = "col"
  189.   else if (the mouseH >= item 1 of sou and the mouseH <= item 2 of sou)¼
  190.        and (the mouseV >= item 3 of sou and the mouseV <= item 4 of sou) then
  191.     set nowroll = "sou"
  192.   else if (the mouseH >= item 1 of mus and the mouseH <= item 2 of mus)¼
  193.      and (the mouseV >= item 3 of mus and the mouseV <= item 4 of mus) then
  194.     set nowroll = "mus"
  195.   else if (the mouseH >= item 1 of cul and the mouseH <= item 2 of cul)¼
  196.      and (the mouseV >= item 3 of cul and the mouseV <= item 4 of cul) then
  197.     set nowroll = "cul"
  198.   else if (the mouseH >= item 1 of nat and the mouseH <= item 2 of nat)¼
  199.      and (the mouseV >= item 3 of nat and the mouseV <= item 4 of nat) then
  200.     set nowroll = "nat"
  201.   else
  202.     set nowroll = ""   
  203.   end if
  204.   return nowroll
  205. end isrollPatt
  206.  
  207. on isrollMate
  208.   global matint,woo,sto,gla, bri,cop,con,rei
  209.   global nowroll
  210.   if (the mouseH >= item 1 of matint and the mouseH <= item 2 of matint)¼
  211.       and (the mouseV >= item 3 of matint and the mouseV <= item 4 of matint) then
  212.     set nowroll = "matint"
  213.   else if (the mouseH >= item 1 of woo and the mouseH <= item 2 of woo)¼
  214.       and (the mouseV >= item 3 of woo and the mouseV <= item 4 of woo) then
  215.     set nowroll = "woo"
  216.   else if (the mouseH >= item 1 of sto and the mouseH <= item 2 of sto)¼
  217.        and (the mouseV >= item 3 of sto and the mouseV <= item 4 of sto) then
  218.     set nowroll = "sto"
  219.   else if (the mouseH >= item 1 of gla and the mouseH <= item 2 of gla)¼
  220.        and (the mouseV >= item 3 of gla and the mouseV <= item 4 of gla) then
  221.     set nowroll = "gla"
  222.   else if (the mouseH >= item 1 of bri and the mouseH <= item 2 of bri)¼
  223.      and (the mouseV >= item 3 of bri and the mouseV <= item 4 of bri) then
  224.     set nowroll = "bri"
  225.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of cop)¼
  226.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of cop) then
  227.     set nowroll = "cop"
  228.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of con)¼
  229.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of con) then
  230.     set nowroll = "con"
  231.   else if (the mouseH >= item 1 of rei and the mouseH <= item 2 of rei)¼
  232.      and (the mouseV >= item 3 of rei and the mouseV <= item 4 of rei) then
  233.     set nowroll = "rei"
  234.   else
  235.     set nowroll = ""   
  236.   end if
  237.   return nowroll
  238. end isrollMate
  239.  
  240. on isrollType 
  241.   global typint,atr, hea, tow
  242.   global nowroll
  243.   if (the mouseH >= item 1 of typint and the mouseH <= item 2 of typint)¼
  244.       and (the mouseV >= item 3 of typint and the mouseV <= item 4 of typint) then
  245.     set nowroll = "typint"
  246.   else if (the mouseH >= item 1 of atr and the mouseH <= item 2 of atr)¼
  247.       and (the mouseV >= item 3 of atr and the mouseV <= item 4 of atr) then
  248.     set nowroll = "atr"
  249.   else if (the mouseH >= item 1 of hea and the mouseH <= item 2 of hea)¼
  250.        and (the mouseV >= item 3 of hea and the mouseV <= item 4 of hea) then
  251.     set nowroll = "hea"
  252.   else if (the mouseH >= item 1 of tow and the mouseH <= item 2 of tow)¼
  253.        and (the mouseV >= item 3 of tow and the mouseV <= item 4 of tow) then
  254.     set nowroll = "tow"
  255.   else
  256.     set nowroll = ""   
  257.   end if
  258.   return nowroll
  259. end isrollType
  260.  
  261. on locCheck spriteNum
  262.   global nowroll
  263.   if the mouseH >= 22 and the mouseH <= (22 + 97) then
  264.     set nowroll = isrollPhil()
  265.     isrollPhil()
  266.     philroll(nowroll,3)
  267.   else if the mouseH >= 142 and the mouseH <= (142 + 87) then
  268.     set nowroll = isrollSite()
  269.     siteroll(nowroll,3)
  270.   else if the mouseH >= 268 and the mouseH <= (268 + 94) then
  271.     set nowroll = isrollPatt()
  272.     pattroll(nowroll,3)
  273.   else if the mouseH >= 392 and the mouseH <= (392 + 92) then
  274.     set nowroll = isrollMate()
  275.     materoll(nowroll,3)
  276.   else if the mouseH >= 521 and the mouseH <= (521 + 70) then
  277.     set nowroll = isrollType()
  278.     typeroll(nowroll,3)
  279.   end if
  280. end locCheck
  281.  
  282. on philroll nowroll,spriteNum
  283.   global flashtimer,phiint
  284.   set flashtimer = FALSE
  285.   set cName = A88
  286.   set resetCname = A51
  287.   if nowroll = "phiint" then
  288.     set the castNum of sprite spriteNum to cName
  289.   else if nowroll = "org" then
  290.     set the castNum of sprite spriteNum to cName + 1
  291.   else if nowroll = "tec" then
  292.     set the castNum of sprite spriteNum to cName + 2
  293.   else if nowroll = "dem" then
  294.     set the castNum of sprite spriteNum to cName + 3
  295.   else if nowroll = "uni" then
  296.     set the castNum of sprite spriteNum to cName + 4
  297.   else if nowroll = "bal" then
  298.     set the castNum of sprite spriteNum to cName + 5
  299.   else if nowroll = "ref" then
  300.     set the castNum of sprite spriteNum to cName + 6
  301.   else if nowroll = "lig" then
  302.     set the castNum of sprite spriteNum to cName + 7
  303.   else if nowroll = "tru" then
  304.     set the castNum of sprite spriteNum to cName + 8
  305.   else
  306.     set the castNum of sprite spriteNum to resetCname
  307.     set flashtimer = TRUE 
  308.   end if
  309.   updateStage
  310.   
  311. end philroll
  312.  
  313. on siteroll nowroll,spriteNum
  314.   global flashtimer,sitint
  315.   set flashtimer = FALSE
  316.   set cName = B21
  317.   set resetCname = A51
  318.   if nowroll = "sitint" then
  319.     set the castNum of sprite spriteNum to cName
  320.   else if nowroll = "fla" then
  321.     set the castNum of sprite spriteNum to cName + 1
  322.   else if nowroll = "hil" then
  323.     set the castNum of sprite spriteNum to cName + 2
  324.   else if nowroll = "mou" then
  325.     set the castNum of sprite spriteNum to cName + 3
  326.   else
  327.     set the castNum of sprite spriteNum to resetCname
  328.     set flashtimer = TRUE
  329.   end if
  330.   updateStage
  331. end siteroll
  332.  
  333. on pattroll nowroll,spriteNum
  334.   global flashtimer,patint
  335.   set flashtimer = FALSE
  336.   set cName = B25
  337.   set resetCname = A51
  338.   if nowroll = "patint" then
  339.     set the castNum of sprite spriteNum to cName
  340.   else if nowroll = "geo" then
  341.     set the castNum of sprite spriteNum to cName + 1
  342.   else if nowroll = "col" then
  343.     set the castNum of sprite spriteNum to cName + 2
  344.   else if nowroll = "sou" then
  345.     set the castNum of sprite spriteNum to cName + 7
  346.   else if nowroll = "mus" then
  347.     set the castNum of sprite spriteNum to cName + 4
  348.   else if nowroll = "cul" then
  349.     set the castNum of sprite spriteNum to cName + 5
  350.   else if nowroll = "nat" then
  351.     set the castNum of sprite spriteNum to cName + 6
  352.   else
  353.     set the castNum of sprite spriteNum to resetCname
  354.     set flashtimer = TRUE
  355.   end if
  356. end pattroll
  357.  
  358. on materoll nowroll,spriteNum
  359.   global flashtimer,matint
  360.   set flashtimer = FALSE
  361.   set cName = B35
  362.   set resetCname = A51
  363.   if nowroll = "matint" then
  364.     set the castNum of sprite spriteNum to cName
  365.   else if nowroll = "woo" then
  366.     set the castNum of sprite spriteNum to cName + 1
  367.   else if nowroll = "sto" then
  368.     set the castNum of sprite spriteNum to cName + 2
  369.   else if nowroll = "gla" then
  370.     set the castNum of sprite spriteNum to cName + 3
  371.   else if nowroll = "bri" then
  372.     set the castNum of sprite spriteNum to cName + 4
  373.   else if nowroll = "cop" then
  374.     set the castNum of sprite spriteNum to cName + 5
  375.   else if nowroll = "con" then
  376.     set the castNum of sprite spriteNum to cName + 6
  377.   else if nowroll = "rei" then
  378.     set the castNum of sprite spriteNum to cName + 7
  379.   else
  380.     set the castNum of sprite spriteNum to resetCname
  381.     set flashtimer = TRUE
  382.   end if
  383.   updateStage
  384. end materoll
  385.  
  386. on typeroll nowroll,spriteNum
  387.   global flashtimer,typint
  388.   set flashtimer = FALSE
  389.   set cName = B45
  390.   set resetCname = A51
  391.   if nowroll = "typint" then
  392.     set the castNum of sprite spriteNum to cName
  393.   else if nowroll = "atr" then
  394.     set the castNum of sprite spriteNum to cName + 1
  395.   else if nowroll = "hea" then
  396.     set the castNum of sprite spriteNum to cName + 2
  397.   else if nowroll = "tow" then
  398.     set the castNum of sprite spriteNum to cName + 3
  399.   else
  400.     set the castNum of sprite spriteNum to resetCname
  401.     set flashtimer = TRUE
  402.   end if
  403.   updateStage
  404. end typeroll
  405.  
  406. on isPress spriteNum 
  407.   global nowFrame,rollFlag, nextMov, lastMovie
  408.   set restate  = A51
  409.   set buttonSucess = FALSE
  410.   set resetCastNo = A31
  411.   set nowPress = isrollPhil()
  412.   if nowPress = "phiint"  then
  413.     set buttonSucess = TRUE
  414.     put nowPress into clickasset
  415.     set nextMov = "FLWSEPH"
  416.   end if
  417.   if nowPress <> ""  and nowPress <> "phiint" then 
  418.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  419.     set resetSprite = 10
  420.     set resetCast = resetCastNo
  421.     put "phi" & nowPress  into clickasset
  422.     set nextMov = "FLWSEPH"
  423.     set buttonSucess = TRUE
  424.     
  425.     repeat while the stillDown
  426.       if isrollPhil() = nowPress then
  427.         put "phi" into secName
  428.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  429.         set resetSprite = 10
  430.         set resetCast = resetCastNo
  431.         put "phi" & nowPress  into clickasset
  432.         set buttonSucess = TRUE
  433.       else if isrollPhil() <> nowPress   then
  434.         set the ink of sprite spriteNum to 8
  435.         set the castNum of sprite spriteNum to  restate
  436.         set buttonSucess = FALSE
  437.       end if
  438.       updateStage
  439.     end repeat
  440.   end if
  441.   
  442.   set nowPress = isrollSite()
  443.   if nowPress = "sitint" then
  444.     set buttonSucess = TRUE
  445.     put nowPress into clickasset
  446.     set nextMov = "FLWSESI"
  447.   end if
  448.   if nowPress  <> "" and nowPress <> "sitint" then
  449.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  450.     set resetSprite = 11
  451.     set resetCast = resetCastNo + 1
  452.     put "sit" & nowPress  into clickasset
  453.     set nextMov = "FLWSESI"
  454.     set buttonSucess = TRUE
  455.     updateStage
  456.     repeat while the stillDown
  457.       if isrollSite() = nowPress then
  458.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  459.         set resetSprite = 11
  460.         set resetCast = resetCastNo + 1
  461.         put "sit" & nowPress  into clickasset
  462.         set buttonSucess = TRUE
  463.       else if isrollSite() <> nowPress  then
  464.         set the ink of sprite spriteNum to 8
  465.         set the castNum of sprite spriteNum to  restate
  466.         set buttonSucess = FALSE
  467.       end if
  468.       updateStage
  469.     end repeat
  470.   end if
  471.   
  472.   set nowPress = isrollPatt()
  473.   if nowPress = "patint"  then
  474.     set buttonSucess = TRUE
  475.     put nowPress into clickasset
  476.     set nextMov = "FLWSEPA"
  477.   end if
  478.   if nowPress  <> "" and nowPress <> "patint" then
  479.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  480.     set resetSprite = 12
  481.     set resetCast = resetCastNo + 2
  482.     put "pat" & nowPress  into clickasset
  483.     set nextMov = "FLWSEPA"
  484.     --    if nowPress = "sou" then
  485.     --      set buttonSucess to FALSE
  486.     --    else
  487.     set buttonSucess = TRUE
  488.     --    end if
  489.     updateStage
  490.     repeat while the stillDown
  491.       if isrollPatt() = nowPress then
  492.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  493.         set resetSprite = 12
  494.         set resetCast = resetCastNo + 2
  495.         put "pat" & nowPress  into clickasset
  496.         set buttonSucess = TRUE
  497.         --        if nowPress = "sou" then
  498.         --          set buttonSucess to FALSE
  499.         --        end if
  500.       else if isrollPatt() <> nowPress then
  501.         set the ink of sprite spriteNum to 8
  502.         set the castNum of sprite spriteNum to  restate
  503.         set buttonSucess = FALSE
  504.       end if
  505.       updateStage
  506.     end repeat
  507.   end if
  508.   
  509.   set nowPress = isrollMate()
  510.   if nowPress = "matint"  then
  511.     set buttonSucess = TRUE
  512.     put nowPress into clickasset
  513.     set nextMov = "FLWSEMA"
  514.   end if
  515.   if nowPress <> "" and nowPress <> "matint" then
  516.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  517.     set resetSprite = 13
  518.     set resetCast = resetCastNo + 3
  519.     put "mat" & nowPress  into clickasset
  520.     set nextMov = "FLWSEMA"
  521.     set buttonSucess = TRUE
  522.     updateStage
  523.     repeat while the stillDown
  524.       if isrollMate() = nowPress then
  525.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  526.         set resetSprite = 13
  527.         set resetCast = resetCastNo + 3
  528.         put "mat" & nowPress  into clickasset
  529.         set buttonSucess = TRUE
  530.       else if isrollMate() <> nowPress  then
  531.         set the ink of sprite spriteNum to 8
  532.         set the castNum of sprite spriteNum to  restate
  533.         set buttonSucess = FALSE
  534.       end if
  535.       updateStage
  536.     end repeat
  537.   end if
  538.   
  539.   set nowPress = isrollType()
  540.   if nowPress = "typint" then
  541.     set buttonSucess = TRUE
  542.     put nowPress into clickasset
  543.     set nextMov = "FLWSETY"
  544.   end if
  545.   if nowPress  <> "" and nowPress <> "typint" then
  546.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  547.     set resetSprite = 14
  548.     set resetCast = resetCastNo + 4
  549.     put "typ" & nowPress  into clickasset
  550.     set nextMov = "FLWSETY"
  551.     set buttonSucess = TRUE
  552.     updateStage
  553.     repeat while the stillDown
  554.       if isrollType() = nowPress then
  555.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  556.         set resetSprite = 14
  557.         set resetCast = resetCastNo + 4
  558.         put "typ" & nowPress  into clickasset
  559.         set buttonSucess = TRUE
  560.       else if isrollType() <> nowPress  then
  561.         set the ink of sprite spriteNum to 8
  562.         set the castNum of sprite spriteNum to  restate
  563.         set buttonSucess = FALSE
  564.       end if
  565.       updateStage
  566.     end repeat
  567.   end if
  568.   
  569.   if buttonSucess = TRUE then
  570.     set the ink of sprite spriteNum to 8
  571.     if spriteNum = 3 then
  572.       set the castNum of sprite spriteNum to restate
  573.       updateStage
  574.       puppetSprite spriteNum, FALSE
  575.     else
  576.       put the timer + 10 into time
  577.       set the castNum of sprite spriteNum to restate
  578.       updateStage
  579.       repeat while the timer < time
  580.       end repeat
  581.       -- put the timer + 10 into time
  582.       -- repeat while the timer  < time
  583.       -- end repeat
  584.       --set the castNum of sprite resetSprite to resetCast
  585.       -- updateStage
  586.       -- put the timer + 10 into time
  587.       -- repeat while the timer  < time
  588.       -- end repeat
  589.       puppetSprite spriteNum,FALSE
  590.     end if
  591.     
  592.     if clickasset = "patsou" then
  593.       set clickasset = "patmus"
  594.     end if
  595.     
  596.     put "se" & clickasset & "000°°°" into jmpFrame
  597.     if chars(nowFrame,3,5) <> "mai" then resetHit
  598.     set rollFlag = FALSE
  599.     set the ink of sprite spriteNum to 8
  600.     puppetSprite 2, FALSE
  601.     puppetSprite 4, FALSE
  602.     puppetSprite 5, FALSE
  603.     
  604.     if chars(clickasset,1,2)=chars(lastMovie,6,7) then
  605.       go to frame jmpFrame
  606.       flush
  607.     else
  608.       go to frame jmpFrame of movie nextMov
  609.       flush
  610.     end if
  611.   end if
  612. end isPress
  613.  
  614. on setPuppet state
  615.   repeat with i = 10 to 15
  616.     puppetSprite i, state
  617.     set the immediate of sprite i to state
  618.   end repeat
  619. end setPuppet
  620.  
  621. on menuRollOver 
  622.   global lastRoll,lastCast,nowFrame,rollFlag
  623.   set resetState = A51
  624.   set cName = A41
  625.   set lCname = A22
  626.   set currHit = A31
  627.   put chars(nowFrame,3,5) into currSec
  628.   
  629.   set rollFlag = FALSE
  630.   
  631.   if currSec = "phi" then
  632.     set the castNum of sprite 10 to currHit
  633.   else if currSec = "sit" then
  634.     set the castNum of sprite 11 to currHit + 1
  635.   else if currSec = "pat" then
  636.     set the castNum of sprite 12 to currHit + 2
  637.   else if currSec = "mat" then
  638.     set the castNum of sprite 13 to currHit + 3
  639.   else if currSec = "typ" then
  640.     set the castNum of sprite 14 to currHit + 4
  641.   end if
  642.   
  643.   if rollOver(10) then
  644.     set rollFlag = TRUE
  645.     if lastRoll <> 0 and lastRoll <> 10  then
  646.       set the castNum of sprite lastRoll to lastCast
  647.     end if
  648.     set the castNum of  sprite 10 to cName
  649.     set lastRoll = 10
  650.     set lastCast = lCname
  651.     set nowroll = isrollPhil()
  652.     philroll(nowroll,15)
  653.   else if rollOver(11) then
  654.     set rollFlag = TRUE
  655.     if lastRoll <> 0 and lastRoll <> 11  then
  656.       set the castNum of sprite lastRoll to lastCast
  657.     end if
  658.     set the castNum of  sprite 11 to cName + 1
  659.     set lastRoll = 11
  660.     set lastCast = lCname + 1
  661.     set nowroll = isrollSite()
  662.     siteroll(nowroll,15)
  663.   else if rollOver(12) then
  664.     set rollFlag = TRUE
  665.     if lastRoll <> 0 and lastRoll <> 12 then
  666.       set the castNum of sprite lastRoll to  lastCast
  667.     end if
  668.     set the castNum of  sprite 12 to cName + 2
  669.     set lastRoll = 12
  670.     set lastCast = lCname + 2
  671.     set nowroll = isrollPatt()
  672.     pattroll(nowroll,15)
  673.   else if rollOver(13) then
  674.     set rollFlag = TRUE
  675.     if lastRoll <> 0 and lastRoll <> 13 then
  676.       set the castNum of sprite lastRoll to  lastCast
  677.     end if
  678.     set the castNum of  sprite 13 to cName + 3
  679.     set lastRoll = 13 
  680.     set lastCast = lCname + 3
  681.     set nowroll = isrollMate()
  682.     materoll(nowroll,15)
  683.   else if rollOver(14) then
  684.     set rollFlag = TRUE
  685.     if lastRoll <> 0 and lastRoll <> 14 then
  686.       set the castNum of sprite lastRoll to  lastCast
  687.     end if
  688.     set the castNum of sprite 14 to cName + 4 
  689.     set lastRoll = 14
  690.     set lastCast = lCname + 4
  691.     set nowroll = isrollType()
  692.     Typeroll(nowroll,15)
  693.   else 
  694.     set rollFlag = FALSE 
  695.     set the castNum of sprite lastRoll to lastCast
  696.     set the castNum of sprite 15 to  resetState
  697.     if currSec = "phi" then
  698.       set the castNum of sprite 10 to currHit
  699.     else if currSec = "sit" then
  700.       set the castNum of sprite 11 to currHit + 1
  701.     else if currSec = "pat" then
  702.       set the castNum of sprite 12 to currHit + 2
  703.     else if currSec = "mat" then
  704.       set the castNum of sprite 13 to currHit + 3
  705.     else if currSec = "typ" then
  706.       set the castNum of sprite 14 to currHit + 4
  707.     end if 
  708.   end if
  709.   updateStage
  710.   return rollFlag
  711. end menuRollOver
  712.  
  713. on resetHit
  714.   set hitSp = A22
  715.   repeat with i = 0 to 4 
  716.     set the castNum of sprite (i+10) to (hitSp + i)
  717.     updateStage
  718.   end repeat
  719. end resetHit
  720.  
  721. on gUnPuppet
  722.   setPuppet FALSE  
  723. end gUnpuppet
  724.  
  725.  
  726.  
  727.